package com.example.personnel_oa.dubbo;

import com.example.comment_oa.dubbo.SysPostServiceDubbo;
import com.example.comment_oa.pojos.SysPost;
import com.example.personnel_oa.service.SysPostService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.List;

@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class SysPostServiceDubboImpl implements SysPostServiceDubbo {
    @Resource
    SysPostService postService;
    @Override
    public List<SysPost> selectPost() {
        List<SysPost> sysPosts = postService.selectPost();
        return sysPosts;
    }
}
